const mongoose = require('mongoose');
const Joi = require('joi');
const commentSchema = new mongoose.Schema({
    //评论所属文章
    aid: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Article'
    },
    //用户id
    uid: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    time: Date,
    content: String
});
const Comment = mongoose.model('Comment',commentSchema);
module.exports = {
    Comment
};